package com.coupons.business.partnerpage.service;

import java.util.List;

import com.coupons.business.common.exception.BaseCouponsAppException;
import com.coupons.business.common.vo.Page;
import com.coupons.business.partnerpage.controller.IPartnerPageManager;
import com.coupons.business.partnerpage.dao.IPartnerPageDAO;

 
public class PartnerPageManagerService implements IPartnerPageManager {

	private IPartnerPageDAO  partnerPageDAO;
	 
	public IPartnerPageDAO getPartnerPageDAO()
	{
		return partnerPageDAO;
	}

	public void setPartnerPageDAO(IPartnerPageDAO partnerPageDAO)
	{
		this.partnerPageDAO = partnerPageDAO;
	}

	public void createPage(Page objaPage) throws BaseCouponsAppException
	{		
		partnerPageDAO.createPage(objaPage);
	}

	public void updatePage(Page objaPage) throws BaseCouponsAppException 
	{		
		partnerPageDAO.updatePage(objaPage);
	}

	public Page getPage(int pageId) throws BaseCouponsAppException
	{		
		return partnerPageDAO.getPage(pageId);
	}
	
	public List<Page> getAllPages()throws BaseCouponsAppException 
	{		
		return partnerPageDAO.getAllPages();		
	}

}
